const Router = require('koa-router');
import userRouter from './user';
import login from './login';
import register from './register';

const router = new Router();
// 使用中间件
router.use(userRouter.routes(), userRouter.allowedMethods());
router.use(login.routes(), login.allowedMethods());
router.use(register.routes(), register.allowedMethods());
export default router;